package ee.greaton.SMSsender;

public class Message {
	String from, content, date, time;
	
	public String toString(){
		return from + ", " + content + ", " + date + ", " + time;
	}

	public void addToReceivedDB() {
		ReceivedDBAdapter receivedDB = new ReceivedDBAdapter(null);
		receivedDB.open();
		receivedDB.addMessage(from, content, date, time);
		receivedDB.close();
	}
}
